package touhou.game;

import java.awt.Canvas;
import java.util.ArrayList;

import touhou.base.ShootStrategy;
import touhou.base.ShootStrategyDefaultImpl;

public class GameShooterDriverDefaultImpl implements GameShooterDriver {
	protected ShootStrategy shootStrategy;
	private int _projectileSpeed = 1;

	public GameShooterDriverDefaultImpl(Canvas canvas) {
		shootStrategy = new ShootStrategyDefaultImpl(canvas);
	}
	
	public GameShooterDriverDefaultImpl(Canvas canvas, int projectileSpeed) {
		shootStrategy = new ShootStrategyDefaultImpl(canvas);
		_projectileSpeed = projectileSpeed;
	}
	
	public int getProjectileSpeed() {
		return _projectileSpeed;
	}
	
	public void setStrategy(ShootStrategy strategy) {
		this.shootStrategy = strategy;
	}
	@Override
	public ArrayList<Projectile> getProjectiles() {
		return shootStrategy.getProjectiles();
	}

}
